package org.dromara.community.controller;

import io.swagger.v3.oas.annotations.Operation;
import org.dromara.community.entity.AsHomeCare;
import org.dromara.community.entity.dto.AsHomeCareDTO;
import org.dromara.community.service.AsHomePicturesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.awt.*;
import java.util.List;

/**
 * 居家养老
 */

@RestController
@RequestMapping("/homePictures")
public class AsHomePicturesController {

    @Autowired
    private AsHomePicturesService asHomePicturesService;

    /**
     * 查询居家养老信息
     *
     * @param asHomeCare 居家养老查询条件对象
     * @return 居家养老信息列表
     */
    @GetMapping("/selectAllIds")
    @Operation(summary = "查询居家养老")
    public List<AsHomeCareDTO> selectAllIds(AsHomeCare asHomeCare) {
        return asHomePicturesService.selectAllIds(asHomeCare);
    }


}
